package com.sinosoft.ptas.control.dto;

import com.sinosoft.ptas.entity.OrganizationNoticeRefEntity;
import com.sinosoft.ptas.system.util.PtasObjectUtil;

/**
 * 司局和公告的对关系
 * @author lianWuJun
 * @time   2017年3月8日 下午4:49:17
 */
public class OrganizationNoticeRefData {
	
	private String id;//编号
	private String orgId;//司局编号
	private String noticeId;//公告编号
	private String orgName;//司局名称
	private String state;//状态    已度  未读
	private String noticeObject;//公告对象
	private String creater;//创建人
	private String createTime;//创建时间
	private String updater;//更新人
	private String updateTime;//更新时间
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getOrgId() {
		return orgId;
	}
	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}
	public String getNoticeId() {
		return noticeId;
	}
	public void setNoticeId(String noticeId) {
		this.noticeId = noticeId;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getNoticeObject() {
		return noticeObject;
	}
	public void setNoticeObject(String noticeObject) {
		this.noticeObject = noticeObject;
	}
	public String getCreater() {
		return creater;
	}
	public void setCreater(String creater) {
		this.creater = creater;
	}
	public String getUpdater() {
		return updater;
	}
	public void setUpdater(String updater) {
		this.updater = updater;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public String getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}
	public String getOrgName() {
		return orgName;
	}
	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}
	/**
	 * 传输类转化为实体类
	 * @return organizationNoticeRefEntity
	 */
	public OrganizationNoticeRefEntity toEntity(){
		OrganizationNoticeRefEntity organizationNoticeRefEntity=new OrganizationNoticeRefEntity();
		PtasObjectUtil.oldToNew(organizationNoticeRefEntity, this, "serialVersionUID");
		return organizationNoticeRefEntity;
	}
	
	/**
	 * 实体类转化为传输类
	 * @return
	 */
	public void toData(OrganizationNoticeRefEntity organizationNoticeRefEntity){
		PtasObjectUtil.oldToNew(this, organizationNoticeRefEntity, "serialVersionUID");
	}
}
